home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7946 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: newsfeed.kdcol.net!usenet
  2. From: eriko@axtech.com (Erik Olson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Serious trouble with STL and NT/Win95
  5. Date: Thu, 15 Feb 1996 13:28:00 GMT
  6. Organization: Axiom Technologies
  7. Message-ID: <3123333e.52774675@server1>
  8. References: <4frrve$pnr@hustle.rahul.net>
  9. Reply-To: eriko@axtech.com
  10. NNTP-Posting-Host: s25.cs00.io.kdcol.net
  11. X-Newsreader: Forte Agent .99d/32.182
  12.  
  13. On 14 Feb 1996 05:29:18 GMT, terris@rahul.net (Terris Linenbach)
  14. wrote:
  15.  
  16. >The following applies to HP's STL implementation, including the version
  17. >shipped in Microsoft Visual C++ 4.0.  Credit goes to David
  18. >Williams.
  19. > <snip>
  20. >1. It is not thread-safe.  Do not attempt to perform
  21. >   something on the same "type" of container in two different threads
  22. >   at the same time.  (You are in trouble even if you try to do this with
  23. >   _different_ objects -- notice I said "type" and not "object")
  24. >
  25. >2. Do not pass *most* STL containers across DLL/EXE boundaries.  Vectors
  26. >   are OK.
  27. ><snip>
  28. >
  29.  
  30. You may want to investigate Objectspace's commercial version of the
  31. STL  (STL<Toolkit> - $149 for the PC) which is advertised as being
  32. thread-safe and compiles with VC 4.0. I'm not sure about passing
  33. containers across module boundaries. See:
  34. http://www.objectspace.com/products/stl/ for more info.
  35.  
  36. FWIW,
  37.  
  38. Erik
  39.